

import {post,postById} from "./http";

//文章列表
export const dirArticle = (data) =>
    post("/Article/GetAllToMoer", data);

//分类文章列表
export const dirArticleBySort = (data) =>
    postById("/Article/GetBySortId", data);

//文章详情
export const getArticleDetail = (id) =>
    postById("/Article/GetByIdToPage", {id});

//文章归档
export const getArticleGroup = (data) =>
    post("/Home/GetStatistics", data);

//文章评论
export const getCommentsList = (data) =>
    post("/mg/api/public/web/comments/list", data);

//添加评论
export const getCommentsCreate = (data) =>
    post("/mg/api/public/web/comments/create", data);

